'use strict';
module.exports = (sequelize, DataTypes) => {
  const CarFence = sequelize.define('CarFence', {
    center: DataTypes.GEOMETRY('POINT', 4326),
    radius: DataTypes.INTEGER
  }, {});
  CarFence.associate = function(models) {
    // associations can be defined here
    CarFence.hasMany(models.Car);
    CarFence.hasMany(models.CorporateEntity);
  };
  return CarFence;
};